Skip to content

Conversation

@bielsnohr
Copy link
Collaborator

@bielsnohr bielsnohr commented Apr 1, 2025

  • Remove explicit use of np.assert_allclose under pytest.raises
  • Add Exception message matching to optional exercise

Crucial note: I have not tested this with the project repo code. Not sure when I will get time to do that, but if someone else does have an hour or so to spare, please feel free to verify that the code edits below work.

Closes #108

@github-actions
Copy link

github-actions bot commented Apr 1, 2025

Thank you!

Thank you for your pull request 😃

🤖 This automated message can help you check the rendered files in your submission for clarity. If you have any questions, please feel free to open an issue in {sandpaper}.

If you have files that automatically render output (e.g. R Markdown), then you should check for the following:

  • 🎯 correct output
  • 🖼️ correct figures
  • ❓ new warnings
  • ‼️ new errors

Rendered Changes

🔍 Inspect the changes: https://github.com/carpentries-incubator/python-intermediate-development/compare/md-outputs..md-outputs-PR-451

The following changes were observed in the rendered markdown documents:

 24-diagnosing-issues-improving-robustness.md | 70 ++++++++++++++++++++++++++--
 md5sum.txt                                   |  2 +-
 2 files changed, 67 insertions(+), 5 deletions(-)
What does this mean?

If you have source files that require output and figures to be generated (e.g. R Markdown), then it is important to make sure the generated figures and output are reproducible.

This output provides a way for you to inspect the output in a diff-friendly manner so that it's easy to see the changes that occur due to new software versions or randomisation.

⏱️ Updated at 2025-04-17 14:53:11 +0000

github-actions bot pushed a commit that referenced this pull request Apr 1, 2025
* Remove explicit use of np.assert_allclose under pytest.raises
* Add Exception message matching to optional exercise
@bielsnohr bielsnohr force-pushed the bielsnohr/108-check-error-raised branch from ddfba29 to 3b41928 Compare April 17, 2025 14:51
github-actions bot pushed a commit that referenced this pull request Apr 17, 2025
Copy link
Collaborator

@anenadic anenadic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me - thank you @bielsnohr.

@anenadic anenadic merged commit 1d26a2d into main May 27, 2025
3 checks passed
github-actions bot pushed a commit that referenced this pull request May 27, 2025
Auto-generated via `{sandpaper}`
Source  : 1d26a2d
Branch  : main
Author  : Aleksandra Nenadic <[email protected]>
Time    : 2025-05-27 09:38:06 +0000
Message : Merge pull request #451 from carpentries-incubator/bielsnohr/108-check-error-raised

Modify defensive programming section
github-actions bot pushed a commit that referenced this pull request May 27, 2025
Auto-generated via `{sandpaper}`
Source  : 6ca5325
Branch  : md-outputs
Author  : GitHub Actions <[email protected]>
Time    : 2025-05-27 09:38:59 +0000
Message : markdown source builds

Auto-generated via `{sandpaper}`
Source  : 1d26a2d
Branch  : main
Author  : Aleksandra Nenadic <[email protected]>
Time    : 2025-05-27 09:38:06 +0000
Message : Merge pull request #451 from carpentries-incubator/bielsnohr/108-check-error-raised

Modify defensive programming section
github-actions bot pushed a commit that referenced this pull request May 27, 2025
Auto-generated via `{sandpaper}`
Source  : 6ca5325
Branch  : md-outputs
Author  : GitHub Actions <[email protected]>
Time    : 2025-05-27 09:38:59 +0000
Message : markdown source builds

Auto-generated via `{sandpaper}`
Source  : 1d26a2d
Branch  : main
Author  : Aleksandra Nenadic <[email protected]>
Time    : 2025-05-27 09:38:06 +0000
Message : Merge pull request #451 from carpentries-incubator/bielsnohr/108-check-error-raised

Modify defensive programming section
github-actions bot pushed a commit that referenced this pull request May 27, 2025
Auto-generated via `{sandpaper}`
Source  : 6ca5325
Branch  : md-outputs
Author  : GitHub Actions <[email protected]>
Time    : 2025-05-27 09:38:59 +0000
Message : markdown source builds

Auto-generated via `{sandpaper}`
Source  : 1d26a2d
Branch  : main
Author  : Aleksandra Nenadic <[email protected]>
Time    : 2025-05-27 09:38:06 +0000
Message : Merge pull request #451 from carpentries-incubator/bielsnohr/108-check-error-raised

Modify defensive programming section
github-actions bot pushed a commit that referenced this pull request May 27, 2025
Auto-generated via `{sandpaper}`
Source  : 6ca5325
Branch  : md-outputs
Author  : GitHub Actions <[email protected]>
Time    : 2025-05-27 09:38:59 +0000
Message : markdown source builds

Auto-generated via `{sandpaper}`
Source  : 1d26a2d
Branch  : main
Author  : Aleksandra Nenadic <[email protected]>
Time    : 2025-05-27 09:38:06 +0000
Message : Merge pull request #451 from carpentries-incubator/bielsnohr/108-check-error-raised

Modify defensive programming section
github-actions bot pushed a commit that referenced this pull request May 27, 2025
Auto-generated via `{sandpaper}`
Source  : 6ca5325
Branch  : md-outputs
Author  : GitHub Actions <[email protected]>
Time    : 2025-05-27 09:38:59 +0000
Message : markdown source builds

Auto-generated via `{sandpaper}`
Source  : 1d26a2d
Branch  : main
Author  : Aleksandra Nenadic <[email protected]>
Time    : 2025-05-27 09:38:06 +0000
Message : Merge pull request #451 from carpentries-incubator/bielsnohr/108-check-error-raised

Modify defensive programming section
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Checking an error is raised by a test

3 participants